package com.ml.mall.service.shop;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ml.mall.bean.page.Page;
import com.ml.mall.bean.req.shop.ShopSupplierQueryDto;
import com.ml.mall.bean.res.product.SysProductQueryByRandomWith18Res;
import com.ml.mall.bean.res.product.SysProductShopPageRes;
import com.ml.mall.bean.res.shop.ShopSupplierQueryRes;

import java.util.List;

/**
 * @description    :description
 * @author         :zxm
 * @date           :2021/5/26
**/
public interface ShopService{

    /**
     * @description    :分页查询卖家商店
     * @author         :zxm
     * @date           :2021/5/26
     **/
    Page<ShopSupplierQueryRes> queryPageShopSupplier(ShopSupplierQueryDto dto);

     /**
      * 重新组织返回的数据：检测是否有优惠券
      * @param pageDate
      * @return
      * @author Daizh
      * @date 2021/7/9 17:53
      */
    List<SysProductShopPageRes> recognizeShopHaveCoupponPageRes(List<SysProductShopPageRes> pageDate);

    /**
     * 重新组织返回的数据：检测是否有优惠券,用于返回随机18条数据
     * @param pageDate
     * @author pl
     * @date 2021/7/10
     */
    List<SysProductQueryByRandomWith18Res> recognizeShopHaveCoupponPageRandom18Res(List<SysProductQueryByRandomWith18Res> pageDate);
}
